package com.xxgc.ssm.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BusinessExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BusinessExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBIdIsNull() {
            addCriterion("b_id is null");
            return (Criteria) this;
        }

        public Criteria andBIdIsNotNull() {
            addCriterion("b_id is not null");
            return (Criteria) this;
        }

        public Criteria andBIdEqualTo(Long value) {
            addCriterion("b_id =", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotEqualTo(Long value) {
            addCriterion("b_id <>", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdGreaterThan(Long value) {
            addCriterion("b_id >", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdGreaterThanOrEqualTo(Long value) {
            addCriterion("b_id >=", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdLessThan(Long value) {
            addCriterion("b_id <", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdLessThanOrEqualTo(Long value) {
            addCriterion("b_id <=", value, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdIn(List<Long> values) {
            addCriterion("b_id in", values, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotIn(List<Long> values) {
            addCriterion("b_id not in", values, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdBetween(Long value1, Long value2) {
            addCriterion("b_id between", value1, value2, "bId");
            return (Criteria) this;
        }

        public Criteria andBIdNotBetween(Long value1, Long value2) {
            addCriterion("b_id not between", value1, value2, "bId");
            return (Criteria) this;
        }

        public Criteria andBNameIsNull() {
            addCriterion("b_name is null");
            return (Criteria) this;
        }

        public Criteria andBNameIsNotNull() {
            addCriterion("b_name is not null");
            return (Criteria) this;
        }

        public Criteria andBNameEqualTo(String value) {
            addCriterion("b_name =", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameNotEqualTo(String value) {
            addCriterion("b_name <>", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameGreaterThan(String value) {
            addCriterion("b_name >", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameGreaterThanOrEqualTo(String value) {
            addCriterion("b_name >=", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameLessThan(String value) {
            addCriterion("b_name <", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameLessThanOrEqualTo(String value) {
            addCriterion("b_name <=", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameLike(String value) {
            addCriterion("b_name like", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameNotLike(String value) {
            addCriterion("b_name not like", value, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameIn(List<String> values) {
            addCriterion("b_name in", values, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameNotIn(List<String> values) {
            addCriterion("b_name not in", values, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameBetween(String value1, String value2) {
            addCriterion("b_name between", value1, value2, "bName");
            return (Criteria) this;
        }

        public Criteria andBNameNotBetween(String value1, String value2) {
            addCriterion("b_name not between", value1, value2, "bName");
            return (Criteria) this;
        }

        public Criteria andBAddressIsNull() {
            addCriterion("b_address is null");
            return (Criteria) this;
        }

        public Criteria andBAddressIsNotNull() {
            addCriterion("b_address is not null");
            return (Criteria) this;
        }

        public Criteria andBAddressEqualTo(String value) {
            addCriterion("b_address =", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressNotEqualTo(String value) {
            addCriterion("b_address <>", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressGreaterThan(String value) {
            addCriterion("b_address >", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressGreaterThanOrEqualTo(String value) {
            addCriterion("b_address >=", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressLessThan(String value) {
            addCriterion("b_address <", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressLessThanOrEqualTo(String value) {
            addCriterion("b_address <=", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressLike(String value) {
            addCriterion("b_address like", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressNotLike(String value) {
            addCriterion("b_address not like", value, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressIn(List<String> values) {
            addCriterion("b_address in", values, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressNotIn(List<String> values) {
            addCriterion("b_address not in", values, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressBetween(String value1, String value2) {
            addCriterion("b_address between", value1, value2, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBAddressNotBetween(String value1, String value2) {
            addCriterion("b_address not between", value1, value2, "bAddress");
            return (Criteria) this;
        }

        public Criteria andBLongitudeIsNull() {
            addCriterion("b_longitude is null");
            return (Criteria) this;
        }

        public Criteria andBLongitudeIsNotNull() {
            addCriterion("b_longitude is not null");
            return (Criteria) this;
        }

        public Criteria andBLongitudeEqualTo(Double value) {
            addCriterion("b_longitude =", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeNotEqualTo(Double value) {
            addCriterion("b_longitude <>", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeGreaterThan(Double value) {
            addCriterion("b_longitude >", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("b_longitude >=", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeLessThan(Double value) {
            addCriterion("b_longitude <", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeLessThanOrEqualTo(Double value) {
            addCriterion("b_longitude <=", value, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeIn(List<Double> values) {
            addCriterion("b_longitude in", values, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeNotIn(List<Double> values) {
            addCriterion("b_longitude not in", values, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeBetween(Double value1, Double value2) {
            addCriterion("b_longitude between", value1, value2, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLongitudeNotBetween(Double value1, Double value2) {
            addCriterion("b_longitude not between", value1, value2, "bLongitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeIsNull() {
            addCriterion("b_latitude is null");
            return (Criteria) this;
        }

        public Criteria andBLatitudeIsNotNull() {
            addCriterion("b_latitude is not null");
            return (Criteria) this;
        }

        public Criteria andBLatitudeEqualTo(Double value) {
            addCriterion("b_latitude =", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeNotEqualTo(Double value) {
            addCriterion("b_latitude <>", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeGreaterThan(Double value) {
            addCriterion("b_latitude >", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("b_latitude >=", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeLessThan(Double value) {
            addCriterion("b_latitude <", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeLessThanOrEqualTo(Double value) {
            addCriterion("b_latitude <=", value, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeIn(List<Double> values) {
            addCriterion("b_latitude in", values, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeNotIn(List<Double> values) {
            addCriterion("b_latitude not in", values, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeBetween(Double value1, Double value2) {
            addCriterion("b_latitude between", value1, value2, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBLatitudeNotBetween(Double value1, Double value2) {
            addCriterion("b_latitude not between", value1, value2, "bLatitude");
            return (Criteria) this;
        }

        public Criteria andBDescribeIsNull() {
            addCriterion("b_describe is null");
            return (Criteria) this;
        }

        public Criteria andBDescribeIsNotNull() {
            addCriterion("b_describe is not null");
            return (Criteria) this;
        }

        public Criteria andBDescribeEqualTo(String value) {
            addCriterion("b_describe =", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeNotEqualTo(String value) {
            addCriterion("b_describe <>", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeGreaterThan(String value) {
            addCriterion("b_describe >", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("b_describe >=", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeLessThan(String value) {
            addCriterion("b_describe <", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeLessThanOrEqualTo(String value) {
            addCriterion("b_describe <=", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeLike(String value) {
            addCriterion("b_describe like", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeNotLike(String value) {
            addCriterion("b_describe not like", value, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeIn(List<String> values) {
            addCriterion("b_describe in", values, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeNotIn(List<String> values) {
            addCriterion("b_describe not in", values, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeBetween(String value1, String value2) {
            addCriterion("b_describe between", value1, value2, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBDescribeNotBetween(String value1, String value2) {
            addCriterion("b_describe not between", value1, value2, "bDescribe");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1IsNull() {
            addCriterion("b_store_picture1 is null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1IsNotNull() {
            addCriterion("b_store_picture1 is not null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1EqualTo(String value) {
            addCriterion("b_store_picture1 =", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1NotEqualTo(String value) {
            addCriterion("b_store_picture1 <>", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1GreaterThan(String value) {
            addCriterion("b_store_picture1 >", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1GreaterThanOrEqualTo(String value) {
            addCriterion("b_store_picture1 >=", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1LessThan(String value) {
            addCriterion("b_store_picture1 <", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1LessThanOrEqualTo(String value) {
            addCriterion("b_store_picture1 <=", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1Like(String value) {
            addCriterion("b_store_picture1 like", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1NotLike(String value) {
            addCriterion("b_store_picture1 not like", value, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1In(List<String> values) {
            addCriterion("b_store_picture1 in", values, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1NotIn(List<String> values) {
            addCriterion("b_store_picture1 not in", values, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1Between(String value1, String value2) {
            addCriterion("b_store_picture1 between", value1, value2, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture1NotBetween(String value1, String value2) {
            addCriterion("b_store_picture1 not between", value1, value2, "bStorePicture1");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2IsNull() {
            addCriterion("b_store_picture2 is null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2IsNotNull() {
            addCriterion("b_store_picture2 is not null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2EqualTo(String value) {
            addCriterion("b_store_picture2 =", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2NotEqualTo(String value) {
            addCriterion("b_store_picture2 <>", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2GreaterThan(String value) {
            addCriterion("b_store_picture2 >", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2GreaterThanOrEqualTo(String value) {
            addCriterion("b_store_picture2 >=", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2LessThan(String value) {
            addCriterion("b_store_picture2 <", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2LessThanOrEqualTo(String value) {
            addCriterion("b_store_picture2 <=", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2Like(String value) {
            addCriterion("b_store_picture2 like", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2NotLike(String value) {
            addCriterion("b_store_picture2 not like", value, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2In(List<String> values) {
            addCriterion("b_store_picture2 in", values, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2NotIn(List<String> values) {
            addCriterion("b_store_picture2 not in", values, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2Between(String value1, String value2) {
            addCriterion("b_store_picture2 between", value1, value2, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture2NotBetween(String value1, String value2) {
            addCriterion("b_store_picture2 not between", value1, value2, "bStorePicture2");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3IsNull() {
            addCriterion("b_store_picture3 is null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3IsNotNull() {
            addCriterion("b_store_picture3 is not null");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3EqualTo(String value) {
            addCriterion("b_store_picture3 =", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3NotEqualTo(String value) {
            addCriterion("b_store_picture3 <>", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3GreaterThan(String value) {
            addCriterion("b_store_picture3 >", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3GreaterThanOrEqualTo(String value) {
            addCriterion("b_store_picture3 >=", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3LessThan(String value) {
            addCriterion("b_store_picture3 <", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3LessThanOrEqualTo(String value) {
            addCriterion("b_store_picture3 <=", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3Like(String value) {
            addCriterion("b_store_picture3 like", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3NotLike(String value) {
            addCriterion("b_store_picture3 not like", value, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3In(List<String> values) {
            addCriterion("b_store_picture3 in", values, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3NotIn(List<String> values) {
            addCriterion("b_store_picture3 not in", values, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3Between(String value1, String value2) {
            addCriterion("b_store_picture3 between", value1, value2, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBStorePicture3NotBetween(String value1, String value2) {
            addCriterion("b_store_picture3 not between", value1, value2, "bStorePicture3");
            return (Criteria) this;
        }

        public Criteria andBPhoneIsNull() {
            addCriterion("b_phone is null");
            return (Criteria) this;
        }

        public Criteria andBPhoneIsNotNull() {
            addCriterion("b_phone is not null");
            return (Criteria) this;
        }

        public Criteria andBPhoneEqualTo(String value) {
            addCriterion("b_phone =", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneNotEqualTo(String value) {
            addCriterion("b_phone <>", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneGreaterThan(String value) {
            addCriterion("b_phone >", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("b_phone >=", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneLessThan(String value) {
            addCriterion("b_phone <", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneLessThanOrEqualTo(String value) {
            addCriterion("b_phone <=", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneLike(String value) {
            addCriterion("b_phone like", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneNotLike(String value) {
            addCriterion("b_phone not like", value, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneIn(List<String> values) {
            addCriterion("b_phone in", values, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneNotIn(List<String> values) {
            addCriterion("b_phone not in", values, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneBetween(String value1, String value2) {
            addCriterion("b_phone between", value1, value2, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBPhoneNotBetween(String value1, String value2) {
            addCriterion("b_phone not between", value1, value2, "bPhone");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursIsNull() {
            addCriterion("b_business_hours is null");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursIsNotNull() {
            addCriterion("b_business_hours is not null");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursEqualTo(String value) {
            addCriterion("b_business_hours =", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursNotEqualTo(String value) {
            addCriterion("b_business_hours <>", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursGreaterThan(String value) {
            addCriterion("b_business_hours >", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursGreaterThanOrEqualTo(String value) {
            addCriterion("b_business_hours >=", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursLessThan(String value) {
            addCriterion("b_business_hours <", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursLessThanOrEqualTo(String value) {
            addCriterion("b_business_hours <=", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursLike(String value) {
            addCriterion("b_business_hours like", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursNotLike(String value) {
            addCriterion("b_business_hours not like", value, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursIn(List<String> values) {
            addCriterion("b_business_hours in", values, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursNotIn(List<String> values) {
            addCriterion("b_business_hours not in", values, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursBetween(String value1, String value2) {
            addCriterion("b_business_hours between", value1, value2, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBBusinessHoursNotBetween(String value1, String value2) {
            addCriterion("b_business_hours not between", value1, value2, "bBusinessHours");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolIsNull() {
            addCriterion("b_and_school is null");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolIsNotNull() {
            addCriterion("b_and_school is not null");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolEqualTo(Integer value) {
            addCriterion("b_and_school =", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolNotEqualTo(Integer value) {
            addCriterion("b_and_school <>", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolGreaterThan(Integer value) {
            addCriterion("b_and_school >", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolGreaterThanOrEqualTo(Integer value) {
            addCriterion("b_and_school >=", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolLessThan(Integer value) {
            addCriterion("b_and_school <", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolLessThanOrEqualTo(Integer value) {
            addCriterion("b_and_school <=", value, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolIn(List<Integer> values) {
            addCriterion("b_and_school in", values, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolNotIn(List<Integer> values) {
            addCriterion("b_and_school not in", values, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolBetween(Integer value1, Integer value2) {
            addCriterion("b_and_school between", value1, value2, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBAndSchoolNotBetween(Integer value1, Integer value2) {
            addCriterion("b_and_school not between", value1, value2, "bAndSchool");
            return (Criteria) this;
        }

        public Criteria andBValidIsNull() {
            addCriterion("b_valid is null");
            return (Criteria) this;
        }

        public Criteria andBValidIsNotNull() {
            addCriterion("b_valid is not null");
            return (Criteria) this;
        }

        public Criteria andBValidEqualTo(String value) {
            addCriterion("b_valid =", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidNotEqualTo(String value) {
            addCriterion("b_valid <>", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidGreaterThan(String value) {
            addCriterion("b_valid >", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidGreaterThanOrEqualTo(String value) {
            addCriterion("b_valid >=", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidLessThan(String value) {
            addCriterion("b_valid <", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidLessThanOrEqualTo(String value) {
            addCriterion("b_valid <=", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidLike(String value) {
            addCriterion("b_valid like", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidNotLike(String value) {
            addCriterion("b_valid not like", value, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidIn(List<String> values) {
            addCriterion("b_valid in", values, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidNotIn(List<String> values) {
            addCriterion("b_valid not in", values, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidBetween(String value1, String value2) {
            addCriterion("b_valid between", value1, value2, "bValid");
            return (Criteria) this;
        }

        public Criteria andBValidNotBetween(String value1, String value2) {
            addCriterion("b_valid not between", value1, value2, "bValid");
            return (Criteria) this;
        }

        public Criteria andBCreateIsNull() {
            addCriterion("b_create is null");
            return (Criteria) this;
        }

        public Criteria andBCreateIsNotNull() {
            addCriterion("b_create is not null");
            return (Criteria) this;
        }

        public Criteria andBCreateEqualTo(Date value) {
            addCriterion("b_create =", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateNotEqualTo(Date value) {
            addCriterion("b_create <>", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateGreaterThan(Date value) {
            addCriterion("b_create >", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("b_create >=", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateLessThan(Date value) {
            addCriterion("b_create <", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateLessThanOrEqualTo(Date value) {
            addCriterion("b_create <=", value, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateIn(List<Date> values) {
            addCriterion("b_create in", values, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateNotIn(List<Date> values) {
            addCriterion("b_create not in", values, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateBetween(Date value1, Date value2) {
            addCriterion("b_create between", value1, value2, "bCreate");
            return (Criteria) this;
        }

        public Criteria andBCreateNotBetween(Date value1, Date value2) {
            addCriterion("b_create not between", value1, value2, "bCreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}